﻿<Window x:Class="Sakura.Games.StgFramework.Builder.UI.DamageTypeEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
				xmlns:my="clr-namespace:Sakura.Games.StgFramework.Builder.UI" UseLayoutRounding="True"
        Title="伤害类型编辑" Height="300" Width="400" WindowStartupLocation="CenterOwner">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="auto" />
			<RowDefinition Height="auto" />
			<RowDefinition Height="auto" />
			<RowDefinition />
			<RowDefinition Height="auto" />
		</Grid.RowDefinitions>
		
		<Label Margin="3" Grid.Row="0" Content="名称：" />
		<TextBox Margin="3" Grid.Row="1" Name="NameTextBox" FontWeight="Bold" />
		<Label Margin="3" Grid.Row="2" Content="描述：" />
		<TextBox Margin="3" Grid.Row="3" AcceptsReturn="True" TextWrapping="Wrap" Name="DescTextBox" />
		
		<Grid Grid.Row="4" Name="ActionGrid">
			<Grid.ColumnDefinitions>
				<ColumnDefinition />
				<ColumnDefinition Width="auto" SharedSizeGroup="Buttons" />
				<ColumnDefinition Width="auto" SharedSizeGroup="Buttons" />
			</Grid.ColumnDefinitions>
			
			<Button Margin="3" Grid.Column="1" Style="{StaticResource ImageItemButtonStyle}" Content="{StaticResource SaveItem}" IsDefault="True" Command="my:ActionCommands.Save" />
			<Button Margin="3" Grid.Column="2" Style="{StaticResource ImageItemButtonStyle}" Content="{StaticResource CancelItem}" IsCancel="True" Command="my:ActionCommands.Cancel" />
			
		</Grid>
		
	</Grid>
	
	<Window.CommandBindings>
		<CommandBinding Command="my:ActionCommands.Save" CanExecute="OnSaveCanExecute" Executed="OnSaveExecuted" />
		<CommandBinding Command="my:ActionCommands.Cancel" CanExecute="OnCancelCanExecute" Executed="OnCancelExecuted" />
	</Window.CommandBindings>
	
</Window>
